﻿using SK3000RunningTestTool.SKServerEnum;
using SK3000RunningTestTool.SKServerSource;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SK3000RunningTestTool.SKService
{
    public struct ServiceStruct : ISKServiceStruct
    {
        public int ID
        {
            get;
            set;
        }
        /// <summary>
        /// 类型ID
        /// </summary>
        public Enum_ServiceTestType TypeID
        {
            get;
            set;
        }

        public ServiceTestType Type => ServiceTestTypeSource.ServiceTestTypeList[TypeID];
        public string ServiceName
        {
            get;
            set;
        }

        public string ServiceRemark
        {
            get;
            set;
        }

        /// <summary>
        /// 服务地址
        /// </summary>
        public string ServiceAddress
        {
            get;
            set;
        }

        /// <summary>
        /// 服务端口
        /// </summary>
        public ushort ServicePort
        {
            get;
            set;
        }

        /// <summary>
        /// 标签
        /// </summary>
        public object Tag
        {
            get;
            set;
        }
    }
}
